package com.jeesite.modules.kj.api.vo.response;

import com.jeesite.modules.kj.api.vo.response.base.BaseResponseVo;
import com.jeesite.modules.kj.entity.KjIntegralAuth;
import com.jeesite.modules.kj.entity.KjMember;
import com.jeesite.modules.kj.utils.ServiceTypeUtil;
import com.jeesite.modules.sys.utils.DictUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class IntegralAuthDetailResponseVo extends IntegralAuthResponseVo {

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "服务介绍")
    private String description;		// 服务介绍
    @ApiModelProperty(value = "省")
    private String province;		// 省
    @ApiModelProperty(value = "市")
    private String city;		// 市
    @ApiModelProperty(value = "区")
    private String region;		// 区
    @ApiModelProperty(value = "国家")
    private String country;		// 国家
    @ApiModelProperty(value = "审核备注")
    private String approveRemarks;		// 审核备注
    @ApiModelProperty(value = "积分发放状态")
    private String sendFlag;
    @ApiModelProperty(value = "服务类型名")
    private String serviceTypeStr;		// 服务类型
    public IntegralAuthDetailResponseVo() {
    }

    @Override
    public void setEntity(KjIntegralAuth entity) {
        BeanUtils.copyProperties(entity, this);
        this.serviceTypeStr = ServiceTypeUtil.getServiceTypeByCode(entity.getServiceType()).getTypeName();
    }

    public IntegralAuthDetailResponseVo(KjIntegralAuth entity) {
        setEntity(entity);
    }
}
